//
//  RoudedShape.swift
//  Twitter
//
//  Created by Hoa.wang on 2022/4/1.
//

import Foundation
import SwiftUI

struct RoudedShape: Shape {
    
    var corner: UIRectCorner
    
    func path(in rect: CGRect) -> Path {
        let path = UIBezierPath(roundedRect: rect, byRoundingCorners: corner, cornerRadii: CGSize(width: 80, height: 80))
        return Path(path.cgPath)
    }
    
}
